package com.imooc.disruptor.disruptor;

import com.imooc.disruptor.entity.TranslatorDataWrapper;
import com.lmax.disruptor.WorkHandler;
import lombok.Data;

/**
 * @author yqc 2018/10/16
 */
@Data
public abstract class MessageConsumer implements WorkHandler<TranslatorDataWrapper> {

    protected String consumerId;

    public MessageConsumer(String consumerId) {
        this.consumerId = consumerId;
    }

}
